Skip to content

Fix the npm registry issue in release pipeline#670

Open
Deekshitha2812 wants to merge 3 commits into
masterfrom
users/deekshitha2812/fix-node-api-relase-pipeline
Open

Fix the npm registry issue in release pipeline#670
Deekshitha2812 wants to merge 3 commits into
masterfrom
users/deekshitha2812/fix-node-api-relase-pipeline

Conversation

@Deekshitha2812
Copy link
Copy Markdown

@Deekshitha2812 Deekshitha2812 commented May 26, 2026

Problem

The node-api-release pipeline is failing due to 1ES Network Isolation (Enforce mode) blocking outbound connections:

  1. NodeTool@0 step fails for Node 16.x, 18.x — Network Isolation blocks connections to nodejs.org, preventing Node binary downloads.
  2. Upgrade npm step fails for Node 20.x, 22.x, 24.x — Network Isolation (CFSClean policy) blocks connections to registry.npmjs.org, preventing npm install -g npm@8.

Root Cause

  • The pipeline's Network Isolation policy (Preferred,CFSClean) does not include the NodeTool shared policy, which is required to allow downloads from nodejs.org.
  • The CFSClean policy intentionally blocks all public package registries (including registry.npmjs.org) for SFI compliance. The Upgrade npm step (npm install -g npm@8) attempts to download from registry.npmjs.org, which is blocked.

Fix

  1. Added NodeTool to the network isolation policy — Allows nodejs.org access so NodeTool@0 can download Node binaries.
  2. Removed the Upgrade npm step — because every Node version already ships with a sufficient npm version. The bundled npm is sufficient for npm install and npm publish. No upgrade is needed.

Testing

@Deekshitha2812
Copy link
Copy Markdown
Author

/azp run

@Deekshitha2812
Copy link
Copy Markdown
Author

/azp run

@Deekshitha2812 Deekshitha2812 force-pushed the users/deekshitha2812/fix-node-api-relase-pipeline branch 2 times, most recently from 4a1cf91 to d6e9b02 Compare June 4, 2026 11:13
@Deekshitha2812 Deekshitha2812 force-pushed the users/deekshitha2812/fix-node-api-relase-pipeline branch from d6e9b02 to 0b06403 Compare June 5, 2026 03:55
@Deekshitha2812 Deekshitha2812 marked this pull request as ready for review June 5, 2026 04:12
@Deekshitha2812 Deekshitha2812 requested a review from a team as a code owner June 5, 2026 04:12
@Deekshitha2812
Copy link
Copy Markdown
Author

/azp run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant